/* ===========================
   BASE STYLES
=========================== */
body {
  background-color: rgb(40, 41, 48);
  color: #f0f0f0;
  font-family: monospace;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* prevent horizontal scroll */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

body.loaded {
  opacity: 1;
  transform: translateY(0);
}

header {
  text-align: center;
  background-color: rgb(40, 41, 48);
  
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

section img {
  margin-top: -10px;   /* move section image closer to header */
  margin-bottom: 20px; /* keep some spacing below section image */
}

/* Optional: reduce header bottom padding for tighter spacing */
header {
  padding-bottom: 40px; /* smaller than before to bring images up */
}
nav {
  text-align: center;
  margin-bottom: -30px;
  background-color: rgb(0, 0, 0);
  width: 100%;
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

nav a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 30px;
  font-size: 30px;
  transition: color 0.3s ease, font-size 0.3s ease;
}

nav a:hover {
  color: #40c55d;
  font-size: 35px;
}

main {
  max-width: 800px;
  width: 90%;
  margin: auto;
}

section {
  margin-bottom: 100px;
}

section img, header img {
  width: 100%;        /* scale to container */
  max-width: 700px;   /* keeps desktop size */
  height: auto;
  display: block;
  margin: 0 auto;
}

footer {
  text-align: center;
  opacity: 0.6;
  font-size: 14px;
  background-color: rgb(82, 104, 104);
  padding-bottom: 10px;
  -webkit-mask-image: linear-gradient(to top, black 70%, transparent 100%);
  mask-image: linear-gradient(to top, black 70%, transparent 100%);
}
.support-me {
  text-align: center;
}

.support-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  background: #29abe0;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
}

.support-btn:hover {
  opacity: 0.85;
}
.End {
  margin-top: 50px;
  padding-top: 50px;
}

.Privacy-Policy {
  font-size: 15px;
  color: white;
  transition: color 0.2s ease, font-size 0.2s ease;
}

.Privacy-Policy:hover {
  font-size: 16px;
  color: black;
}

.Socials img {
  width: 30px;
  height: auto;
}

/* ===========================
   MOBILE RESPONSIVE
=========================== */
@media (max-width: 768px) {
  /* Nav stack */
  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  nav {
    padding-bottom: 50px;
  }
  nav a {
    margin: 0;
    font-size: 18px;
  }

  /* Header logo shrink */
  header img {
    max-width: 300px;
  }

  /* Section images smaller */
  section img {
    max-width: 300px
  }

  main {
    width: 95%;
  }

  footer {
    font-size: 12px;
  }

  .End {
    margin-top: 30px;
    padding-top: 30px;
  }

  .Socials img {
    width: 25px;
  }
  footer {
    font-size: 12px;
    padding: 20px 10px;
  }

  .End img {
    width: 150px;
    height: auto;
  }

  .Privacy-Policy {
    font-size: 13px;
  }

  .Privacy-Policy:hover {
    font-size: 14px;
  }

  .Socials img {
    width: 25px;
  }
}

@media (max-width: 480px) {
  nav a {
    font-size: 16px;
  }

  header img {
    max-width: 300px;
  }

  footer {
    font-size: 11px;
  }

  .End {
    margin-top: 20px;
    padding-top: 20px;
  }

  .Socials img {
    width: 20px;
  }
}
